<template>
  <el-dialog title="已选学生" :visible.sync="showStudentResultList">
    <el-table :data="studentResultList">
      <el-table-column label="序号" type="index" />
      <el-table-column label="用户名" align="center" prop="nickname" />
      <el-table-column label="手机号" align="center" prop="mobile" />
      <el-table-column label="认证状态" align="center" prop="status">
        <template slot-scope="scope">{{
          Number(scope.row.status) === 1 ? "已认证" : "未认证"
        }}</template>
      </el-table-column>
    </el-table>
  </el-dialog>
</template>
<script>
import { getStudentListByIds } from '@/api/company-admin-api/userManage/index.js'
export default {
  name: 'StudentResultDialog',
  components: {},
  data() {
    return {
      studentResultList: [],
      showStudentResultList: false
    }
  },
  methods: {
    open(ids) {
      const params = {
        ids: ids.join(',')
      }
      getStudentListByIds(params).then(res => {
        if (res && res.code === 0) {
          this.studentResultList = res.data
          this.showStudentResultList = true
        }
      })
    }
  }
}
</script>

